package com.xie.springCloud;

import com.xie.myRule.MyRuleConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * 采用 ribbon restTemplate服务名称
 */

@SpringBootApplication
@EnableEurekaClient
//自定义负载均衡 MyRuleConfig 不能为主程序同级
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT",configuration= MyRuleConfig.class)
public class ComsumerDept_9001 {
    public static void main(String[] args) {
        SpringApplication.run(ComsumerDept_9001.class,args);
    }
}
